package org.jeecg.modules.test;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tangxz
 * @info
 * @date 2019/8/28 19:39
 */
@RestController
@RequestMapping("/test/jeecgDemo")
@Slf4j
public class JeecgTestController {

    /**
     * jeecg.modules.hello world
     *
     * @param
     * @return
     */
    @GetMapping(value = "/jeecg.modules.hello")
    public Result<String> hello() {
        Result<String> result = new Result<String>();
        result.setResult("Hello World!");
        result.setSuccess(true);
        log.info("---------------Hello World!-------------");
        return result;
    }
}